package com.stu.disruptor.controller;

import com.stu.disruptor.sharingvalue.BeanTool;
import com.stu.disruptor.sharingvalue.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("test")
    public String test(){
        TestService bean = BeanTool.getBean(TestService.class);
        return bean.getStr();
    }

}
